﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace DAO
{
    public class KHODAO
    {
        public DataTable LoadKho()
        {
            DataTable dtKho = new DataTable();
            SqlConnection cn = Connection.ConnectionData();
            SqlCommand cmd = new SqlCommand("sp_BangKho", cn);
            cmd.CommandType = CommandType.StoredProcedure;

            SqlDataAdapter da = new SqlDataAdapter(cmd);
            da.Fill(dtKho);
            cn.Close();
            return dtKho;
        }
    }
}
